package com.whfc.ms.api.fim.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.env.entity.FenceEdgeDevice;
import com.whfc.env.service.FenceEdgeDeviceService;
import com.whfc.ms.api.fim.service.MsFenceEdgeDeviceService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class MsFenceEdgeDeviceServiceImpl implements MsFenceEdgeDeviceService {

    @DubboReference(interfaceClass = FenceEdgeDeviceService.class, version = "1.0.0")
    private FenceEdgeDeviceService fenceEdgeDeviceService;

    @Override
    public PageData<FenceEdgeDevice> listPage(Integer pageNum, Integer pageSize, Integer deptId, String name) {
        return fenceEdgeDeviceService.listPage(deptId,pageNum,pageSize,name);
    }

    @Override
    public void add(FenceEdgeDevice request) {
        fenceEdgeDeviceService.add(request);
    }

    @Override
    public void edit(FenceEdgeDevice request) {
        fenceEdgeDeviceService.edit(request);
    }

    @Override
    public void del(FenceEdgeDevice request) {
        fenceEdgeDeviceService.del(request);
    }
}
